import Phaser from '../lib/phaser3.esm.js'
import Game from './scenes/game.js'
import GameOver from './scenes/gameover.js'

export default new Phaser.Game({
  type: Phaser.AUTO, // auto decide canvas / webgl
  width: 480,
  height: 640,
  scene: [ Game, GameOver ], // auto load first scene
  physics: {
    default: 'arcade',
    arcade: {
      gravity: { y: 400 },
      //debug: true // show collision box & velocity
    }
  }
})